package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBasePort;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBasePort is a Querydsl query type for EBasePort
 */
@Label("BasePort查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBasePort extends RelationalPathBase<EBasePort> {

    private static final long serialVersionUID = -684886373;

    public static final QBasePort basePort = new QBasePort("base_port");

    public class PrimaryKeys {

        public final PrimaryKey<EBasePort> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ERegion> kfCity = createForeignKey(cityId, "id");

    }

    public final StringPath cityId = createString("cityId");

    public final StringPath id = createString("id");

    public final StringPath portCode = createString("portCode");

    public final StringPath portName = createString("portName");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBasePort(String variable) {
        super(EBasePort.class, forVariable(variable), "null", "base_port");
        addMetadata();
    }

    public QBasePort(String variable, String schema, String table) {
        super(EBasePort.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBasePort(Path<? extends EBasePort> path) {
        super(path.getType(), path.getMetadata(), "null", "base_port");
        addMetadata();
    }

    public QBasePort(PathMetadata<?> metadata) {
        super(EBasePort.class, metadata, "null", "base_port");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(cityId, ColumnMetadata.named("cityId").withIndex(4).ofType(Types.CHAR).withSize(24));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(portCode, ColumnMetadata.named("portCode").withIndex(3).ofType(Types.VARCHAR).withSize(100));
        addMetadata(portName, ColumnMetadata.named("portName").withIndex(2).ofType(Types.VARCHAR).withSize(100));
    }

}

